<?php


namespace app\voip\validate;


use think\Validate;

class CallAuth extends Validate
{
    protected $rule = [
        'name'  =>  'require|max:120',
        'user'=>'require',
        'sms_id'=>'max:240',
        'intro'=>'require|max:240',
        'enumber'=>'require|max:240',
        'sms'=>'max:240',
        'users'=>'require',
        'aim'=>'require|max:240'
    ];

    protected $message = [
        'name'  =>  '客服组名字未填写',
        'user'=>'客服组成员未填写',
        'sms_id'=>'短信配置错误',
        'intro'=>'请注意备注|简介',
        'enumber'=>'请输入执行内容',
        'sms'=>'短信配置错误',
        'aim'=>'任务目的请填写'
    ];
    protected $scene = [
        'addCall'  => ['name','user','sms_id','intro'],
        'taskAdd'  => ['name','intro','enumber','users','aim'],
        'addData'  =>['name','user','intro']
    ];

}